<%-- 文章分类管理--%>
<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%@ include file="../../../commons/commons_resource_head.jsp"%>
<title>${htmlTitleText}-文章分类管理</title>
<link href="${vendorsBase}/zTree_v3/css/metroStyle/metroStyle.css?v=${version}" rel="stylesheet" />

<style type="text/css">
#toolbar>input {
	display: inline;
}
.jk_article_cate_name{
    width: 80%;
    display: inline-block;
    vertical-align: middle;
}
</style>

</head>
<body>

	<div class="container-fluid">

		<div id="toolbar">
			<button id="pf-add-top-cate-btn" class="btn btn-primary btn-sm">
				<i class="glyphicon glyphicon-plus"></i>
				添加顶级分类
			</button>
		</div>
		<table class="table table-striped table-bordered table-hover table-full-width" id="pf-cate-table" data-toolbar="#toolbar">
			<thead>
			</thead>
			<tbody id="tbody">

			</tbody>
		</table>


	</div>
	<script id="pf-row" type="text/html">
	<tr data-index="pf-{{id}}">
		<td style="text-align: left; vertical-align: middle; display: none;">{{id}}</td>
		<td style="text-align: left; vertical-align: middle; display: none;">{{parentId}}</td>
		<td style="text-align: left; vertical-align: middle;">
			&nbsp;&nbsp;&nbsp;&nbsp;
			<img src="/assets/vendors/tree-table/images/minus.gif">
			&nbsp;{{title}}
		</td>
		<td style="text-align: center; vertical-align: middle;">{{orderby}}</td>
		<td style="text-align: center; vertical-align: middle;">{{if hidden == true }}隐藏{{/if}}{{if display==false}}显示{{/if}}</td>
		<td style="text-align: center; vertical-align: middle;">
			<button type="button" class="btn btn-danger btn-xs pf-delete-cate-btn">
				<i class="glyphicon glyphicon-trash"></i>
				删除
			</button>&nbsp;<button type="button" class="btn btn-success btn-xs pf-update-cate-btn">
				<i class="glyphicon glyphicon-pencil"></i>
				修改
			</button>&nbsp;<button type="button" class="btn btn-primary btn-xs pf-add-sub-cate-btn">
				<i class="glyphicon glyphicon-plus"></i>
				添加子分类
			</button>
			&nbsp;
		</td>
	</tr>
</script>
	<%@ include file="article_cate_modal.jsp"%>
	<%@ include file="../../../commons/commons_resource_foot.jsp"%>
    <script src="${vendorsBase}/tree-table/jquery.treetable.js?v=${version}"></script>
	<script src="${vendorsBase}/zTree_v3/js/jquery.ztree.all-3.5.min.js?v=${version}"></script>
	<script src="${vendorsBase}/input_valid/input_valid.js?version=${version}" type="text/javascript"></script>
	<script src="${manageMimeBase}/scripts/article/article_cate.js?version=${version}" type="text/javascript"></script>
</body>
</html>
